<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.ajax4jsf.org/rich">

<f:view>
    <ui:composition template="../../template/template.xhtml">

	    <ui:define name="conteudo">
	            
	            
	    <a4j:form id="formConsultarAgenda" ajaxSingle="true" style="width: 50.1%; margin-left: 320px; border: 1px solid #B0C4DE; margin-top: -16px; margin-bottom: -16px;">
	     
	     <br />
		     
		     <rich:messages style="margin-left:10px; COLOR: #ff0000; FONT-WEIGHT: bold;"></rich:messages>
	       
	        <center>
	        
	        <b>Frequência do Paciente</b>
	

			<br />
			<br />

			<h:outputLabel value="Nome do Paciente: " style="FONT-WEIGHT: bold;"/>
			<h:inputText value="#{relatorioFrequenciaPacienteBean.relFrequenciaPaciente.noPaciente}" />
			

			<br />
			<br />
				
				<a4j:commandButton value="Consultar" action="#{relatorioFrequenciaPacienteBean.consultar}" reRender="tabelaFrequencia"/>
				<a4j:commandButton value="Limpar" action="#{relatorioFrequenciaPacienteBean.limparCampo}" reRender="formConsultarAgenda"/>
				
				
			<br />
			<br />
			
			<rich:dataTable id="tabelaFrequencia" value="#{relatorioFrequenciaPacienteBean.lista}" var="freq" style=" width : 261px;">
	            
	                <rich:column style="text-align: center;">
	                    <f:facet name="header">
	                        <h:outputText value="Data Consulta" />
	                    </f:facet>
	                    <h:outputText value="#{freq.dtConsulta}" >
	                    	<f:convertDateTime/>
	                    </h:outputText>
	                </rich:column>
	                
	                <rich:column style="text-align: center;">
	                    <f:facet name="header">
	                        <h:outputText value="Horário" />
	                    </f:facet>
	                    <h:outputText value="#{freq.horario}" />
	                </rich:column>
	            
	            	 <rich:column style="text-align: center;">
	                    <f:facet name="header">
	                        <h:outputText value="Especialidade" />
	                    </f:facet>
	                    <h:outputText value="#{freq.noEspecialidade}" >
	                    	<f:convertDateTime/>
	                    </h:outputText>
	                </rich:column>
	                
	                <rich:column style="text-align: center;">
	                    <f:facet name="header">
	                        <h:outputText value="Terapeuta" />
	                    </f:facet>
	                    <h:outputText value="#{freq.noTerapeuta}" />
	                </rich:column>
	            
	            </rich:dataTable>
				
				</center>
				
				<br />
				<br />
				<br />
				
					            
	    </a4j:form>
	    	
		</ui:define>
    </ui:composition>
</f:view>
</html>